package com.dhcc.sdc.ws.SdsIntheCaseService;

public class SdsIntheCaseServiceSoapProxy implements SdsIntheCaseServiceSoap {
  private String _endpoint = null;
  private SdsIntheCaseServiceSoap sdsIntheCaseServiceSoap = null;
  
  public SdsIntheCaseServiceSoapProxy() {
    _initSdsIntheCaseServiceSoapProxy();
  }
  
  public SdsIntheCaseServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initSdsIntheCaseServiceSoapProxy();
  }
  
  private void _initSdsIntheCaseServiceSoapProxy() {
    try {
      sdsIntheCaseServiceSoap = (new SdsIntheCaseServiceLocator()).getSdsIntheCaseServiceSoap();
      if (sdsIntheCaseServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sdsIntheCaseServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sdsIntheCaseServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sdsIntheCaseServiceSoap != null)
      ((javax.xml.rpc.Stub)sdsIntheCaseServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public SdsIntheCaseServiceSoap getSdsIntheCaseServiceSoap() {
    if (sdsIntheCaseServiceSoap == null)
      _initSdsIntheCaseServiceSoapProxy();
    return sdsIntheCaseServiceSoap;
  }
  
  public String getInUseInfoImage(String docID) throws java.rmi.RemoteException{
	if (sdsIntheCaseServiceSoap == null)
	   _initSdsIntheCaseServiceSoapProxy();
	  return sdsIntheCaseServiceSoap.getInUseInfoImage(docID);
	}
  
  public String storeIntheCase(String intheCases) throws java.rmi.RemoteException{
    if (sdsIntheCaseServiceSoap == null)
      _initSdsIntheCaseServiceSoapProxy();
    return sdsIntheCaseServiceSoap.storeIntheCase(intheCases);
  }
  
  
}